package com.marvels.financial.loan.dao;

import com.marvels.financial.loan.dto.McfeDebtorRepaymentInfoTmpDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface McfeDebtorRepaymentInfoTmpDao {
    int deleteByPrimaryKey(Long id);

    int insert(McfeDebtorRepaymentInfoTmpDTO record);

    int insertSelective(McfeDebtorRepaymentInfoTmpDTO record);

    McfeDebtorRepaymentInfoTmpDTO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(McfeDebtorRepaymentInfoTmpDTO record);

    int updateByPrimaryKey(McfeDebtorRepaymentInfoTmpDTO record);
    
    
    int updateBatchId(@Param(value="batchId") String batchId);
    
    
    List<McfeDebtorRepaymentInfoTmpDTO> selectByBatchId(@Param(value="batchId") String batchId);
    
    
    
    /**
     * 根据loanId查询当天的数据
     * @param loanId
     * @return
     */
    McfeDebtorRepaymentInfoTmpDTO selectByLoanId(@Param(value="loanId") String loanId);
}